package views.features;

import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.Insets;

import views.util.GameColors;

@SuppressWarnings("serial")
public class CreateAccountView extends LoginMenuView {
	public CreateAccountView() {
		super("", "");
		main.removeAll();
		gbc = new GridBagConstraints();
		gbc.insets = new Insets(5, 5, 5, 5);
		
		gbc.gridx = 0;
		gbc.gridy = 0;
		main.add(usernameLabel, gbc);
		gbc.gridx = 1;
		gbc.gridy = 0;
		userTextField.setFont(new Font("Segoe UI", Font.PLAIN, textDim));
		main.add(userTextField, gbc);

		gbc.gridx = 0;
		gbc.gridy = 1;
		main.add(passwordLabel, gbc);
		gbc.gridx = 1;
		gbc.gridy = 1;
		passTextField.setFont(new Font("Segoe UI", Font.PLAIN, textDim));
		main.add(passTextField, gbc);

		gbc.gridx = 0;
		gbc.gridy = 2;
		secretQuestionLabel.setFont(new Font("Segoe UI", Font.PLAIN, textDim));
		secretQuestionLabel.setForeground(GameColors.ROSSO);
		main.add(secretQuestionLabel, gbc);
		gbc.gridx = 1;
		gbc.gridy = 2;
		secretQuestionTextField.setFont(new Font("Segoe UI", Font.PLAIN,
				textDim));
		main.add(secretQuestionTextField, gbc);

		gbc.gridx = 0;
		gbc.gridy = 3;
		secretAnswerLabel.setFont(new Font("Segoe UI", Font.PLAIN, textDim));
		secretAnswerLabel.setForeground(GameColors.ROSSO);
		main.add(secretAnswerLabel, gbc);
		gbc.gridx = 1;
		gbc.gridy = 3;
		secretAnswerTextField
				.setFont(new Font("Segoe UI", Font.PLAIN, textDim));
		main.add(secretAnswerTextField, gbc);

		gbc.gridx = 0;
		gbc.gridy = 4;
		gbc.gridwidth = 2;
		gbc.fill = GridBagConstraints.HORIZONTAL;
		build.setPreferredSize(buttonDimesion);
		build.setFont(new Font("Segoe UI", Font.PLAIN, textDim));
		build.setBorderPainted(false);
		main.add(build, gbc);

		gbc.gridx = 0;
		gbc.gridy = 5;
		main.add(back, gbc);
	}

}
